﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using System.Data;
using Automobile.service.Model;
using Automobile.service.DAL;

namespace Automobile.service.BLL
{
    public class MemberCardBll
    {
        MemberCardDal dal = new MemberCardDal();
        /// <summary>
        /// 会员信息显示
        /// </summary>
        /// <returns></returns>
        public List<MemberCardModel> xian()
        {
            return dal.xian();
        }
        /// <summary>
        /// 添加用户信息
        /// </summary>
        /// <param name="b"></param>
        /// <returns></returns>
        public int AddMemberCard(MemberCardModel me)
        {
            return dal.AddMemberCard(me);
        }
        /// <summary>
        ///修改用户信息
        /// </summary>
        /// <param name="em"></param>
        /// <returns></returns>
        public int UpdateMemberCard(MemberCardModel mem)
        {
            return dal.UpdateMemberCard(mem);
        }
        /// <summary>
        /// 取单个库房信息
        /// </summary>
        /// <returns></returns>
        public DataTable GetMemberCard(string MemberCard_Id)
        {
            return dal.GetMemberCard(MemberCard_Id);
        }
        /// <summary>
        /// 删除用户信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int DeleMemberCard(int MemberCard_Id)
        {
            return dal.DeleMemberCard(MemberCard_Id);
        }
    }
}
